package r25.room;

import r25.character.ICharacter;
import r25.engine.Event;
import r25.engine.IEvent.EVENT;
import r25.engine.IGameInstance;
import r25.engine.IGameInstance.CHARACTER_ACTION;

/**
 * While in this room you can only program one action during the Programming
 * phase.
 * 
 * @author u211354
 * 
 */
public class ColdChamber extends AbstractRoom {
	@Override
	public CHARACTER_ACTION onEnter(IGameInstance gi, ICharacter character)
			throws Exception {
		CHARACTER_ACTION rc = super.onEnter(gi, character);
		gi.pushEvent(new Event(EVENT.ONE_ACTION_NEXT_TURN, this, character));
		return rc;
	}

	@Override
	public int countCharacterActions() {
		return 1;
	}
}
